#include "stm32f4xx.h"
#include "bsp_led.h"

void delay_s(int n)
{
	for (int j = 0; j < n; j++);
	for (int i = 0; i < 1000000; i++);
}

int main(void)
{
	// 初始化外设
	LED_GPIO_Config();
	
	// 闪烁
	while (1)
	{
		LED_ON(RED);
		delay_s(10);
		LED_OFF();
		
		LED_ON(GREEN);
		delay_s(10);
		LED_OFF();
		
		LED_ON(BLUE);
		delay_s(10);
		LED_OFF();
	}
}
